
def chongqian(a):
    if a>=1000:
        return 300
    elif a>=500:
        return 150
    else:
        return 0

n=int(input("请输入充值金额："))
print("赠送金额：",chongqian(n))
